(function(){
	jQuery(document).ready(function($){
    var AsideAnimate = function(elem){
      var that = this;
      that.elem = elem;
    };

    AsideAnimate.prototype.init = function(){
      var that = this;
    }

    $('aside').mouseenter(function(e){


    });

    var introShowed = 0;//判断intro是否展开
    var introSwitching = 0;
    var $aside = $('aside');
    var $arrow = $aside.find('.arrow');
    var $arrowi = $arrow.find('i');
    $arrow.click(function (e) {
      if(introSwitching) return;
      introSwitching = 1;
      if(!introShowed){
        $aside.css('left','0');
        $arrow.css('animation-name','arrowr');
        $arrowi.removeClass('fa-angle-double-right').addClass('fa-angle-double-left');
        introShowed = 1;
      }else{
        $arrow.removeAttr('style');
        $aside.removeAttr('style');
        $arrowi.removeClass('fa-angle-double-left').addClass('fa-angle-double-right');
        introShowed = 0;
      }

    });

    $aside.on('transitionend',function(e){
      console.log('end')
      introSwitching = 0;
    });





    function requestFullScreen(element) {
        // Supports most browsers and their versions.
        var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;

        if (requestMethod) { // Native full screen.
            requestMethod.call(element);
        } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
            var wscript = new ActiveXObject("WScript.Shell");
            if (wscript !== null) {
                wscript.SendKeys("{F11}");
            }
        }
    }

    var elem = document.body; // Make the body go full screen.
    $(document).on('click',function(){
      requestFullScreen(elem);
    })



	});
})();



(function (W) {



})(window);
